package com.itools.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itools.core.dto.accessToken.FmsAccessTokenDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @description:
 * @author: XUCHANG
 * @create: 2021-03-28 15:51
 */
@Repository
public interface FmsAccessTokenMapper extends BaseMapper<FmsAccessTokenDTO> {


    /**
     * 根据主键（fileAccessToken）查询
     *
     * @param fileAccessToken
     * @return
     */
    FmsAccessTokenDTO selectByPrimaryKey(String fileAccessToken);

    /**
     * 批量插入
     * @param records
     * @return
     */
    int multipartInsert(@Param("records") List<FmsAccessTokenDTO> records);
}